<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($AGENT["name"]); ?></title>
<link href='/meirongtest/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirongtest/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/global.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/lbs.js'></script>
<script type='text/javascript'>
var web_domain='/meirongtest';
var static_domain='/meirongtest';
var img_domain='/meirongtest';
var _PUBLIC_ = '/meirongtest/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
</script>
<link href='/meirongtest/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirongtest/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/meirongtest/Public/Member/js/mall.js"></script>
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/meirongtest/Public/Member/js/operamasks-ui.min.js'></script>
<link href='/meirongtest/Public/Member/css/operamasks-ui.css' rel='stylesheet' type='text/css' />

 <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.5&ak=A68f6155d14422d0baa2e0da8f76edf8"></script>
<script language="javascript">
	$(document).ready(lbs_obj.addlbs); 
</script>


</head>
<body>
<div id="iframe_page">
    <div class="iframe_content"> 
		<div class="r_nav">
		    <ul>
	            <li class="<?php if((ACTION_NAME) == "lbslist"): ?>cur<?php endif; ?>"><a href="<?php echo U('Lbs/lbslist');?>">门店管理</a></li>
          	</ul>
		</div>
		
	<div id="products" class="r_con_wrap">
		<form id="lbsAdd" class="r_con_form">
			<div class="rows">
				<label>门店名称</label>
				<span class="input">
		        	<input type="text" name="store" value="<?php echo ($lbs["store"]); ?>" class="form_input" size="35" maxlength="100" notnull=""> 
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
   
		     <div class="rows">
				<label>联系电话</label>
				<span class="input">
		        	<input type="text" name="tel" value="<?php echo ($lbs["tel"]); ?>" class="form_input" size="15" maxlength="100" notnull="">
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			<div class="rows">
				<label>环境分数</label>
				<span class="input">
		        	<input type="text" name="score" value="<?php echo ($lbs["score"]); ?>" class="form_input" size="15" maxlength="100" notnull="">分
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			
			
             <div class="rows">
				<label>所属地区</label>
				<span class="input">
		        	<select name="Regional" notnull="">
				        <option value="">--请选择--</option>
				        <?php if(is_array($regionalList)): $i = 0; $__LIST__ = $regionalList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["name"]); ?>">------<?php echo ($vo["name"]); ?>------</option>
				        	<?php if(is_array($vo["area"])): $i = 0; $__LIST__ = $vo["area"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($v["name"]); ?>" <?php if(($lbs["area"]) == $v["name"]): ?>selected<?php endif; ?>>├<?php echo ($v["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
				        	<!-- <option value="<?php echo ($vo["name"]); ?>" <?php if(($beautician["regional"]) == $vo["name"]): ?>selected<?php endif; ?>>├<?php echo ($vo["name"]); ?></option> --><?php endforeach; endif; else: echo "" ;endif; ?> 
			        </select>
			        <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			
			
			
			
			
			
			
			<div class="rows">
				<label>详细地址</label>
					<span class="input">
					<input name="Address" id="Address" value="<?php echo ($lbs["address"]); ?>" type="text" class="form_input" size="45" maxlength="100" notnull>
					<span class="primary" id="Primary">定位</span>
					<font class="fc_red">*</font><br />
					<div class="tips">如果输入地址后点击定位按钮无法定位，请在地图上直接点击选择地点</div>
					<div id="map"></div>
			</span>
			<div class="clear"></div>
			</div>

			
			<div class="rows">
				<label>门店介绍</label>
				<span class="input">
		        	<textarea type="text" name="container" class="form_input"  notnull="" style="margin: 0px; width: 350px; height: 200px;resize: none;"><?php echo ($lbs["container"]); ?></textarea>
		            <font class="fc_red">*</font>
		        </span>
				<div class="clear"></div>
			</div>
			<div class="rows">
				<label>封面图片</label>
				<span class="input">
					<span class="upload_file">
						<div>
							<div class="up_input">
							    <input name="ImgUpload" id="ImgUpload" type="file" width="120" height="30" style="display: none;">
							</div>
							<input type="hidden" name="ImgPath" value="<?php echo ($lbs["headimg"]); ?>"> 
							
							<div class="clear"></div>
						</div>
						</span>
						<div class="img" id="ImgDetail">
							<?php if($lbs['id'] > 0): ?><a href="<?php echo ($lbs["headimg"]); ?>" target="_blank">
			                   		<img src="<?php echo ($lbs["headimg"]); ?>" >
			                   	</a><?php endif; ?>
						</div>
					
					
				</span>
			<div class="clear"></div>
			</div>
		    <div class="rows">
            <label>门店展示</label>
            <span class="input">
                <span class="upload_file">
                    <div>
                        <div class="up_input"><input name="PicUpload" id="PicUpload" type="file" /></div>
                        <div class="tips">共可上传<span id="pic_count">5</span>张图片，图片大小建议：250*150像素</div>
                        <div class="clear"></div>
                    </div>
                </span>
                <div class="img" id="PicDetail">   
                    <?php if(is_array($lbs["show"])): foreach($lbs["show"] as $key=>$vv): ?><div>
                        <a href="<?php echo ($vv); ?>" target="_blank">
                            <img src="<?php echo ($vv); ?>"></a>
                            <span>删除</span>
                            <input type="hidden" name="PicPath[]" value="<?php echo ($vv); ?>">
                        </div><?php endforeach; endif; ?>
                </div>
            </span>
            <div class="clear"></div>
        </div>
			<div class="rows">
				<label></label>
				<span class="input">
		        	<input type="button" class="btn_ok" id="submit" name="submit_button" value="提交保存">
		        	<a href="<?php echo U('lbslist');?>" class="btn_cancel">返回</a>
		         </span>
				<div class="clear"></div>
			</div>
		<input type="hidden" name="PrimaryLng" value="<?php echo ($lbs["primarylng"]); ?>">
		<input type="hidden" name="PrimaryLat" value="<?php echo ($lbs["primarylat"]); ?>">
		<input type="hidden" id="do_action" value="<?php echo U('Feed/feedAdd');?>">
		<input type="hidden" id="link_jump" value="<?php echo U('Feed/feed');?>">
		<input type="hidden" name="id" value="<?php echo ($lbs["id"]); ?>">
		</form>
	</div>


	</div>
</div>
</body>
</html>